Some typical image sizes for a 35mm image scanned with an HP Photosmart scanner are:
| Format | Dimensions | DPI | File Size |
|
negative | TIFF | 3456x2384 | 2400 | 24M
|
negative | TIFF | 1748X1192 | 1200 | 6.1M | 1.5x1 inch
|
print | TIFF | 1773x1243 | 300 | 6.5M | 6x4 inches
|
print | TIFF | 667x443 | 150 | 867K
|
As you can see most of the scans above would need both their dimensions and file size reduced to
meet posting guidelines. The low resolution (150 dpi) print, however, is dimensionally close to
posting guidelines without further size reduction and 150 dpi does produce a good quality
print image. However, its 867K file size is too large for Web posting
guidelines and still requires file compression.
An image's file size is related to the image format used. In the table above the scanner captured
the image in TIFF format. TIFF is used to capture and process images because it's a loss-less format,
which means that it captures and maintains the maximum amount of information possible in the image.
This also produces and maintains the best possible image quality. However, it also produces files that
are too large for posting on the Web. To produce smaller files, images are converted to JPEG format
and compressed (in a process explained below) before they're posted on the Web.
For more about image formats see "A Word about Image Formats".
Scanning images at higher resolutions like 2400 dpi isn't necessary for posting on the Web. After
all you're just going to remove the extra pixels in the process of shrinking the image's size in
preparation for posting. Nevertheless, there are four reasons that I still prefer to scan from
negatives at 2400 dpi:
negatives contain more detail than prints,
negatives are full image, prints are often cropped,
prints already have someone else's color corrections built in, and
I like to keep the master scan at highest resolution for other possible future uses.
Resizing Images
If you have a larger image, such as a scanned negative, you will need to resize it to meet posting
guidelines. While there are a few ways to change the dimensions of an image, here we'll simply
resize our image from 3456x2384 to 667x460 pixels. Simply leaving out four out of every five
dots doesn't produce very good results, so software packages use more sophisticated 'resampling'
techniques for resizing:
smoothing techniques to reduce graininess when shrinking images, and
edge preserving techniques to maintain sharpness when enlarging them.
A non-smooth technique was used to shrink the image below.
Further below is the same image resampled using a smooth technique for
comparison. Clicking on the image displays enlarged samples and a survey
of resampling methods available in a few software packages.
By leaving dots out of the image, the image's file size shrinks in proportion to its dimensions.
Resizing the 3456x2384 scan to 667x460, like the print, produces a comparably sized file. The resized
TIFF is 900K, regardless of resizing method, while the print, which is slightly smaller at 667x443
is 867K.
Compressing Image Files with JPEG
As you can see, resizing alone won't necessarily produce an image file small enough for
downloading on the Web. To further reduce the file's size, JPEG compression is used. However,
just like resizing, JPEG compression is lossy, which means that image quality drops off as compression
levels rise. So as a rule, while images are captured and processed in a loss-less format, like TIFF,
they're only converted to JPEG and saved as a final step.
Compressing an image is a tradeoff between:
desired file size, and
desired image quality.
JPEG Compression and Image Quality
JPEG compression level controls the tradeoff between image quality and file size.
Software packages, such as those listed below, use a variety of methods to
set the JPEG compression level.
While each package uses a simple approach to set the desired amount of compression, approaches
among packages vary so widely that you may need more of an explanation
than just the generic rule of thumb below.
As a general rule*, however, on a compression level scale
of 1-100 with 1 being best quality
- settings around 10-15 produce excellent results, and
- settings around 25-30 produce good results.
Note (*)
not all packages use a compression level scale. For equivalent settings for various software packages,
see more of an explanation.
Image Quality
To illustrate the effects of JPEG compression on image quality, we'll look at a section of the image
above at compression levels 10, 50 and 75. Compression effects are most easily seen when the image is
enlarged, and clicking on any of the samples below displays an enlargement for this purpose. Review
these enlargements to familiarize yourself with the visible effects of over-compressing an image and
to recognize these same effects if they appear in your images.
The sample above shows the image at compression level 10. As you can see by clicking on the image,
there is little quality loss at this level. In fact at normal size (1X) this sample is
indistinguishable from a sample made at compression level 1 (best quality). Compression level 10
does, however, significantly reduce the file size from 154K to 41K.